uncomfirmed_users = ['zs','ls','ww']
confirmed_users = []

while uncomfirmed_users:
	item = uncomfirmed_users.pop(0)
	print('confirm user %s' % item)
	confirmed_users.append(item)

for item in confirmed_users:
	print(item)

pets = ['dog','cat','dog','goldfish','cat','rabbit','cat']

while 'cat' in pets:
	pets.remove('cat')
	print(pets)


responses = {}
while True:
	name = input('what is your name?')
	response = input('which moutain would you like to climb someday?')
	responses[name] = response

	repeat = input('would you like to let another person to respond?')
	if repeat == 'no':
		break

print("============poll result2=============")

for k,v in responses.items():
	print('%s woulk like to climb %s' % (k,v))



print("\n##########################prac-7.3#########################")
sandwich_orders = ['pastrami','tuna','pastrami','meat','pastrami','beef','chicken']
print('pastrami sandwich have saled out')
while 'pastrami' in sandwich_orders:
	sandwich_orders.remove('pastrami')
	print('refuse a pastrami order')

finished_sanwichs = []
while sandwich_orders:
	item = sandwich_orders.pop(0)
	finished_sanwichs.append(item)
	print('made your %s sandwich' % item)

print(finished_sanwichs)

dream_place = {}
while True:
	name = input("what is your name?")
	place = input("if you could visit one place in the world,where would you go?")
	dream_place[name] = place

	repeat = input("some other one??")
	if repeat == 'no':
		break

for k,v in dream_place.items():
	print("%s would go to %s" % (k,v))


